<div class="row-fluid">
    <div class="span12">
        <h3 class="heading">Registro de Nuevo Alumno</h3>    
        <?php echo $this->Form->create('Alumno'); ?>                   



        <div class="tabbable tabbable-bordered">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#tab_br1" data-toggle="tab">Datos Generales</a></li>
                <li><a href="#tab_br2" data-toggle="tab">Inscripcion</a></li>
                
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="tab_br1">

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span8">
                                <label>Nombre <span class="f_req">*</span></label>
                                <?php echo $this->Form->text('nombre', array('class' => 'span12', 'required')); ?>
                            </div>            
                        </div>
                    </div>   

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span4">
                                <label>Apellido Paterno </label>
                                <?php echo $this->Form->text('ap_paterno', array('class' => 'span12','class' => 'span12', 'required')); ?>
                            </div>
                            <div class="span4">
                                <label>Apellido Materno </label>
                                <?php echo $this->Form->text('ap_materno', array('class' => 'span12')); ?>
                            </div>
                        </div>
                    </div>

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span4">
                                <label>Fecha de Nacimiento <span class="f_req">*</span></label>
                                <?php //echo $this->Form->text('fecha_nacimiento', array('class' => 'span4', 'id' => 'dp1')); ?>
                                <?php echo $this->Form->text('fecha_nacimiento', array('class' => 'span4', 'id' => 'fecha','class' => 'span12', 'required')); ?>                
                            </div>                
                            <div class="span4">
                                <label><span class="error_placement">Genero</span> <span class="f_req">*</span></label>
                                <label class="radio inline">
                                    <input type="radio" value="M" name="data[Alumno][genero]" checked="checked" />
                                    Masculino
                                </label>
                                <label class="radio inline">
                                    <input type="radio" value="F" name="data[Alumno][genero]" />
                                    Femenino
                                </label>
                            </div>               
                        </div>
                    </div>

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span4">
                                <label>Telefono</label>
                                <?php echo $this->Form->text('telefono', array('class' => 'span12','class' => 'span12', 'required')); ?>
                            </div>
                            <div class="span4">
                                <label>Email</label>
                                <?php echo $this->Form->text('email', array('class' => 'span12')); ?>
                            </div>
                        </div>
                    </div>

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span8">
                                <label>Direccion </label>
                                <?php echo $this->Form->text('direccion', array('class' => 'span12')); ?>
                            </div>            
                        </div>
                    </div>

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span8">
                                <label>Observaciones </label>
                                <!--
                    <textarea name="reg_your_message" id="reg_your_message" cols="10" rows="3" class="span8"></textarea>
                                -->
                                <?php echo $this->Form->textarea('observacion', array('cols' => 10, 'rows' => 3, 'class' => 'span8')); ?>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="tab-pane" id="tab_br2">

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span4">
                                <label>Seleccione Curso <span class="f_req">*</span></label>
                                
                                <?php 
                                
                                echo $this->Form->select('AlumnosParalelo.nivele_id', $dcn, array('id'=>'AlumnosParaleloCurso', 'class' => 'span12','value'=> $alumnosparalelo['AlumnosParalelo']['nivele_id'])); ?>
                                
                            </div>            
                        </div>
                    </div> 

                    <div class="formSep">
                        <div class="row-fluid">
                            <div class="span4">                                                                                                  
                                <label>Seleccione Paralelo</label>
                                <div id="cargaParalelos"> 
                                   <?php echo $this->Form->select('AlumnosParalelo.paralelo_id', $dcp, array('class' => 'span12', 'required','value'=> $alumnosparalelo['AlumnosParalelo']['paralelo_id'])); ?>                              
                                </div>
                            </div>            
                        </div>
                    </div> 

                </div>
                
            </div>
        </div>

        <div class="form-actions">
            <button class="btn btn-success" type="submit">Guardar Cambios</button>        
        </div>   
        </form>
    </div>
</div>
<?php 
                                    $this->Js->get('#AlumnosParaleloCurso')->event(
                                    'change',
                                    $this->Js->request(
                                        array('action' => 'ajaxparalelosinscribe'),
                                        array(
                                        'async' => true, 
                                        'update' => '#cargaParalelos',
                                        'dataExpression' => true, 
                                        'method' => 'post',
                                        'data' => $this->Js->serializeForm(array('isForm' => true, 'inline' => true))
                                        )
                                    )
                                    );
                                ?>

<!-- sidebar -->
<?php echo $this->element('sidebar/alumnos'); ?>
<!-- fin sidebar -->
<?php //llamamos scripts tablas ?>
<?php //echo $this->element('jsformularios'); 
echo $this->Js->writeBuffer(); 
?>
